home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mntlib43 / mntlib / initsig.c < prev    next >
C/C++ Source or Header  |  1993-07-06  |  543b  |  25 lines

  1. /* signal() for MiNT; written by ERS, placed in the public domain */
  2.  
  3. #include <errno.h>
  4. #include <signal.h>
  5. #include "lib.h"
  6.  
  7. /* vector of signal handlers (for TOS, or for MiNT with -mshort) */
  8. __Sigfunc _sig_handler[NSIG];
  9.  
  10. /* vector giving which signals are currently blocked from delivery (for TOS) */
  11. long _sigmask;
  12.  
  13. /* vector giving an indication of which signals are currently pending (for TOS) */
  14. long _sigpending;
  15.  
  16. void
  17. _init_signal()
  18. {
  19.     int i;
  20.  
  21.     for (i = 0; i < NSIG; i++)
  22.         _sig_handler[i] = SIG_DFL;
  23.     _sigpending = _sigmask = 0;
  24. }
  25.